package com.kpf.springcloud.common;

import lombok.Getter;

/**
 * @author shiwen
 * @date 2021/2/16
 */
@Getter
public enum ResponseEnum {

    FAIL(0, "失败"),
    SUCCESS(1, "成功"),
    USER_NOT_EXIST(2, "用户不存在"),
    ILLEGAL_REQUEST_PARAMETER(3, "请求参数非法"),
    TOKEN_EXPIRED(4, "token已过期~"),
    PAY_ORDER_FAIL(5, "支付出错!"),
    PAY_ORDER_TIME_OUT(6, "二维码超时！"),
    NOT_ADMIN_USER_TO_OPERA(7, "非管理员, 无法进行相关权限操作！"),
    TOPIC_NOT_EXIST(8, "帖子不存在~")
    ;

    private int code;
    private String message;

    ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
